package com.leo.offer;

/**
 * 饿汉式单例，天生线程安全
 * @author xuexiaolei
 * @version 2018年03月01日
 */
public class T02Singleton01 {
    private static T02Singleton01 instance = new T02Singleton01();
    private T02Singleton01(){}

    public static T02Singleton01 getInstance() {
        return instance;
    }
}
